#ifndef _DevicesADC_H_
#define _DevicesADC_H_


#define ADC_CHANNEL_VOLTAGE_VCC1    1
#define ADC_CHANNEL_VOLTAGE_VCC2H   2
#define ADC_CHANNEL_VOLTAGE_VCC2L   3
#define ADC_CHANNEL_VOLTAGE_VCCQ    4

#define ADC_CHANNEL_CURRENT_VCC1    5
#define ADC_CHANNEL_CURRENT_VCC2H   6
#define ADC_CHANNEL_CURRENT_VCC2L   7
#define ADC_CHANNEL_CURRENT_VCCQ    8


/* 通道数量 */
#define ADC1_CHANNEL_NUMBER     8
/* 每通道采样次数 */
#define ADC1_SAMPLING_NUMBER    15
/* 采样时间 */
#define ADC_SAMPLE_TIME ADC_SAMPLETIME_15CYCLES



void vADC1Init(void);
float fADCGetValue(uint8_t ucChannel);

#endif
